package com.bicon.botu.medical.model.dto

import lombok.Data
import java.io.Serializable

/**
 * 自定义食物dto
 *
 * @author 张凡
 * @date 2017/12/14 9:42
 */
@Data
class CustomFoodDetailDTO : Serializable {

    /**
     * id
     */
    var id: String? = null
        set(id) {
            field = this.id
        }

    /**
     * 名称
     */
    var name: String? = null
        set(name) {
            field = this.name
        }

    /**
     * 详情图
     */
    var topImage: String? = null
        set(topImage) {
            field = this.topImage
        }

    /**
     * 规格说明
     */
    var specifications: String? = null
        set(specifications) {
            field = this.specifications
        }

    /**
     * 千卡
     */
    var kcal: Int? = null
        set(kcal) {
            field = this.kcal
        }

    /**
     * 千焦
     */
    var kj: Int? = null
        set(kj) {
            field = this.kj
        }

    /**
     * 食物成分
     */
    var foodComponent: List<CustomFoodComponentDTO>? = null
        set(foodComponent) {
            field = this.foodComponent
        }
}